package cdu.javaendwork.model.sqlModel;

import java.math.BigDecimal;

public class Items {
    private int id;
    private int orderid;
    private int goodid;
    private int good_cnt;
    private BigDecimal price;

    public Items() {
    }

    public Items(int id, int orderid, int goodid, int good_cnt, BigDecimal price) {
        this.id = id;
        this.orderid = orderid;
        this.goodid = goodid;
        this.good_cnt = good_cnt;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderid() {
        return orderid;
    }

    public void setOrderid(int orderid) {
        this.orderid = orderid;
    }

    public int getGoodid() {
        return goodid;
    }

    public void setGoodid(int goodid) {
        this.goodid = goodid;
    }

    public int getGood_cnt() {
        return good_cnt;
    }

    public void setGood_cnt(int good_cnt) {
        this.good_cnt = good_cnt;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Items{" +
                "id=" + id +
                ", orderid=" + orderid +
                ", goodid=" + goodid +
                ", good_cnt=" + good_cnt +
                ", price=" + price +
                '}';
    }
}
